<template>
	<div class="whole_wrapper">
		<!-- 头部 -->
		<!-- <div class="header"></div> -->

		<!-- 视频播放器 -->
		<div class="video_player_wrapper0">
			<div class="video_player_wrapper">
				<video-player class="video-player vjs-custom-skin" ref="videoPlayer" :playsinline="true" :options="playerOptions"></video-player>
			</div>
		</div>

		<!-- 视频简介 -->
		<!-- <div class="video_catalog_wrapper">
			<div class="video_catalog">
				<div>
					<div class="video_catalog_term">第1学期 第一学期</div>
					<div class="video_catalog_speak">第1讲 __ 端午诵读</div>
					<div class="video_catalog_speak">第1讲 __ 端午诵读</div>
					<div class="video_catalog_speak">第1讲 __ 端午诵读</div>
				</div>
			</div>
			<div class="video_brief">
				<div class="video_brief-title">课程简介</div>
				<img class="video_brief-img" src="http://static-dev.roncoo.com/course/eddc844967ab43c0899f09ed36474969.ico">
			</div>
		</div> -->

		<!-- 底部 -->
		<div class="footer">
			<div class="footer_top">
				<div>官方微信</div>
			</div>
			<div class="friend_link">友情链接: <a href="http://www.jnlnrdx.com/">老年大学官网</a></div>
			<div class="copyright">版权所有©济南老年人大学</div>
			<div class="number">| 备ICP案19030346 | <img src="http://119.163.126.25:3000/_nuxt/assets/image/prn_icon.png" /></div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'index',
		data() {
			return {
				hotVideoList: [{
						"imgUrl": "http://gudian-integration.oss-cn-beijing.aliyuncs.com/upload/1303154227254759426.png",
						"title": "认识教师"
					},
					{
						"imgUrl": "http://gudian-integration.oss-cn-beijing.aliyuncs.com/upload/1303153609966456834.png",
						"title": "端午经典诵读"
					},
				],
				playerOptions: {
					playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
					autoplay: false, //如果true,浏览器准备好时开始回放。
					muted: false, // 默认情况下将会消除任何音频。
					loop: false, // 导致视频一结束就重新开始。
					preload: 'auto', // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频（如果浏览器支持）
					language: 'zh-CN',
					aspectRatio: '16:9', // 将播放器置于流畅模式，并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字（例如"16:9"或"4:3"）
					fluid: true, // 当true时，Video.js player将拥有流体大小。换句话说，它将按比例缩放以适应其容器。
					sources: [{
						type: "", //这里的种类支持很多种：基本视频格式、直播、流媒体等，具体可以参看git网址项目
						src: "http://gudian-integration.oss-cn-beijing.aliyuncs.com/upload/1303146163587878913.mp4" //url地址
					}],
					poster: "../../static/images/test.jpg", //你的封面地址
					// width: document.documentElement.clientWidth, //播放器宽度
					width: "80%", //播放器宽度
					notSupportedMessage: '此视频暂无法播放，请稍后再试', //允许覆盖Video.js无法播放媒体源时显示的默认信息。
					controlBar: {
						timeDivider: true,
						durationDisplay: true,
						remainingTimeDisplay: false,
						fullscreenToggle: true //全屏按钮
					}
				},
			}
		},
		created() {
			// console.log(this.$route.query.video.videourl);
			var videourl = this.$route.query.video.videourl;
			this.playerOptions.sources[0].src = videourl
		},
		methods: {
			
		}
	}
</script>


<style scoped>
	.whole_wrapper {
		/* margin-bottom: 100px; */
		background: whitesmoke;
	}

	/* 头部 */
	.header {
		height: 150px;
		padding: 0px 200px;
		display: flex;
		align-items: center;
		font-size: 18px;
	}

	.index {
		margin-left: 20px;
	}

	.course {
		margin-left: 20px;
	}

	.header img {
		width: 247px;
		height: 52px;
	}


	/* 轮播*/
	.banner {
		width: 100%;
	}

	.banner img {
		width: 100%;
	}

	/* 视频 */
	.video {
		/* height: 300px; */
		background: whitesmoke;
		/* border: 1px solid red; */
		padding: 0px 200px;
	}

	.blank_line {
		display: inline-block;
		width: 4px;
		height: 24px;
		background: #333;
		position: relative;
		top: 4px;
	}

	.video_top {
		padding-top: 50px;
		width: 100%;
		display: flex;
		justify-content: space-between;
		font-size: 14px;
		color: #999;
	}

	.video_body {
		/* height: 300px; */
		margin-top: 50px;
		display: flex;
		font-size: 14px;
		color: #999;
	}

	.video_body_first {
		width: 285px;
		background-color: #fff;
		border-radius: 6px;
	}

	.video_body_first img {
		width: 285px;
		height: 140px;
	}

	.video_body_first div {
		width: 285px;
		height: 100px;
		padding-left: 10px;
	}

	.video_body_first:not(:first-child) {
		margin-left: 20px;
	}

	/* 底部 */
	.footer {
		background-color: #333333;
		/* border: 1px solid blue; */
		height: 200px;
		color: #fff;
		padding-top: 60px;
		color: #fff;
	}

	.footer_top {
		width: 1200px;
		margin: 0 auto;
		padding-bottom: 30px;
		border-bottom: 1px solid #666666;
		font-size: 18px;
	}

	.line {
		font-weight: bold;
		font-size: 40px;
	}

	.friend_link {
		width: 1200px;
		margin: 0 auto;
		margin-top: 10px;
		font-size: 14px;
	}

	.friend_link a {
		color: #ccc;
		margin: 0px 10px;
	}

	.copyright {
		background: #666666;
		height: 30px;
		line-height: 30px;
		text-align: center;
		color: #ccc;
		margin-top: 25px;
	}

	.number {
		line-height: 30px;
		text-align: center;
		color: #ccc;
	}

	.number img {
		width: 16px;
		height: 16px;
		position: relative;
		top: 10px;
	}


	.video_player_wrapper0 {
		/* background-color: #333333; */
		padding: 20px;
	}

	.video_player_wrapper {
		width: 60%;
		margin: 0px auto;
	}

	// 调整播放器样式
	.video-js .vjs-icon-placeholder {
		width: 100%;
		height: 100%;
		display: block;
	}

	.video_catalog_wrapper {
		width: 60%;
		margin: 30px auto;
		display: flex;
	}

	.video_catalog {
		padding: 30px;
		background: #fff;
		border-radius: 8px;
		min-height: 400px;
		width: 70%;
	}

	.video_brief {
		/* padding: 30px; */
		background: #fff;
		border-radius: 8px;
		width: 25%;
		margin-left: 2%;
		height: 180px;
	}

	.video_brief-title {
		display: block;
		line-height: 60px;
		height: 60px;
		padding-left: 20px;
		font-size: 14px;
		color: #333;
		border-bottom: 1px solid #e4e4e4;
	}

	.video_brief-img {
		width: 46px;
		height: 46px;
		border-radius: 50%;
		background: #e4e4e4;
		text-align: center;
		line-height: 46px;
		font-size: 13px;
		color: #999;
		float: left;
		margin: 0px 10px 0 10px;
		margin: 12px 0px 0px 10px;
	}

	.video_catalog_term {
		font-size: 14px;
		font-weight: 700;
		color: #333;
		padding-bottom: 10px;
	}

	.video_catalog_speak {
		font-size: 14px;
		color: #333;
		padding-bottom: 10px;
		margin-left: 6px;
	}
</style>
